﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Production.DomainLib.AggregatesModel.ProductionPlanAggregate;

namespace Production.InfrastructureLib.EntityConfigurations
{
    internal class ProductionPlanEntityTypeConfiguration : IEntityTypeConfiguration<ProductionPlan>
    {
        public void Configure(EntityTypeBuilder<ProductionPlan> builder)
        {
            builder.ToTable("MES_PRODUCTIONPLAN");

            builder.HasKey(o => o.Id);

            builder.Ignore(b => b.DomainEvents);
            
        }
    }
}
